import config from "config";
import httpFetch from "share/httpFetch";


export default {

  //查询所属帐套
  getSetOfBooksByTenant(){
    return httpFetch.get(`${config.baseUrl}/api/setOfBooks/by/tenant?roleType=TENANT`);
  },

  //查询帐套的审核快捷回复
  getReplyList(params){
    return httpFetch.get(`${config.baseUrl}/api/audit/quick/reply/of/setOfBooks/by/page`,params)
  },

  //帐套快捷回复启用禁用
  onOrOffReply(params){
    return httpFetch.put(`${config.baseUrl}/api/audit/quick/reply/of/setOfBooks/enable`,params)
  },

  //新增快捷回复
  addReply(params){
    return httpFetch.post(`${config.baseUrl}/api/audit/quick/reply`,params)
  },

  //修改快捷回复
  editReply(params){
    return httpFetch.put(`${config.baseUrl}/api/audit/quick/reply`,params)
  },

  // 子数据列表接口
  getReplyChildList(params) {
    return httpFetch.get(`${config.baseUrl}/api/audit/quickReplyDetail/get`, params)
  },

  // 新增子数据
  addChildReply(params) {
    return httpFetch.post(`${config.baseUrl}/api/audit/quickReplyDetail/create`, params)
  },

  //修改快捷回复详情
  editChildReply(params) {
    return httpFetch.put(`${config.baseUrl}/api/audit/quickReplyDetail/update`, params)
  },

  // 批量启用和禁用快捷回复详情
  handleEnabledOrDisabled(params) {
    return httpFetch.put(`${config.baseUrl}/api/audit/quickReplyDetail/enableOrDisable`, params)
  }
}
